import request from '@/utils/request'

// 查询申请开票列表
export function listAnxinInvoiceApply(query) {
  return request({
    url: '/invoice/anxinInvoiceApply/list',
    method: 'get',
    params: query
  })
}

// 查询申请开票详细
export function getAnxinInvoiceApply(id) {
  return request({
    url: '/invoice/anxinInvoiceApply/' + id,
    method: 'get'
  })
}

// 保存申请开票
export function saveAnxinInvoiceApply(data) {
  return request({
    url: '/invoice/anxinInvoiceApply/save',
    method: 'post',
    data: data
  })
}

// 删除申请开票
export function delAnxinInvoiceApply(id) {
  return request({
    url: '/invoice/anxinInvoiceApply/' + id,
    method: 'delete'
  })
}

// 导出申请开票
export function exportAnxinInvoiceApply(query) {
  return request({
    url: '/invoice/anxinInvoiceApply/export',
    method: 'get',
    params: query
  })
}
